PATH![]() |
![]() ![]() |
Displays a window path pop-up menu.
pascal OSStatus WindowPathSelect (
WindowPtr window,
MenuHandle menu,
SInt32 *outMenuResult);
Your application should call the WindowPathSelect function when it detects a Command-click in the title of a window, that is, when the function IsWindowPathSelectClick returns a value of true . Calling WindowPathSelect causes the Window Manager to display a window path pop-up menu for your window. Listing 2-5 in Displaying a Window Path Pop-Up Menu shows an example of how your application might call the WindowPathSelect function.
Note that when WindowPathSelect returns noErr , your application should ensure that the window opened by the Finder's Reveal Object Apple event handler is visible to the user. To do this, your application should call the Process Manager function SetFrontProcess with the Finder's process serial number, as shown in Listing 2-6 in Displaying a Window Path Pop-Up Menu .